import { io } from 'socket.io-client'

// const con = document.querySelector( '#test' )

export const socket = io( 'http://127.0.0.1:7001', {
  query : {
    room : 'demo',
    userId : '111111'
  },
  transports : ['websocket']
} )

console.log( 'vite:' )

socket.on( 'connect', () => {
  console.log( 'socket io client ready' )
} )

socket.on( 'online', () => {
  console.log( '#connect,' )
} )
